<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"><title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/weuix.min.css"/>
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/mui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{:ADDON_PUBLIC_PATH}/css/stu-page.css" />
		<script src="{:ADDON_PUBLIC_PATH}/js/zepto.min.js"></script>
		<script type="text/javascript">
		//静态变量
		var SITE_URL = "{:SITE_URL}";
		var IMG_PATH = "__IMG__";
		var STATIC_PATH = "__STATIC__";
		var WX_APPID = "{$jsapiParams.appId}";
		var	WXJS_TIMESTAMP='{$jsapiParams.timestamp}'; 
		var NONCESTR= '{$jsapiParams.nonceStr}'; 
		var SIGNATURE= '{$jsapiParams.signature}';
	</script>
	<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="minify.php?f=__JS__/prefixfree.min.js,__JS__/m/dialog.js,__JS__/m/flipsnap.min.js,__JS__/m/mobile_module.js&v={:SITE_VERSION}"></script>
		<script>
			$(function(){
				$('#sub').click(function(){
					$.showLoading();
					var name = $('#name').val();
					var idcard = $('#idcard').val();
					if(!name){
						$.hideLoading();
						$.toptips("请输入姓名");
					}else if(!idcard){
						$.hideLoading();
                        $.toptips("请输入身份证号码");
					}else{
							$.ajax({
			                type: 'POST',
			                data:{"name":name,"idcard":idcard},
			                url:"{:addons_url($_REQUEST ['_addons'].'://'.$_REQUEST ['_controller'].'/login/aid/'.I('get.aid').'/status/'.I('get.status'))}",
			                dataType: 'json',
			                success: function(data){
			                   $.hideLoading();
			                   if(data){
			                      $.toast("操作成功");
			                      if(data == 1){
			                      	//本机用户登录
			                      	location.href = "{:addons_url($_REQUEST ['_addons'].'://'.$_REQUEST ['_controller'].'/userInfo')}&aid={:I('aid')}";
			                      }else{
			                      	location.href = "{:addons_url($_REQUEST ['_addons'].'://'.$_REQUEST ['_controller'].'/userInfo')}&aid={:I('aid')}&x="+data;
			                      }
			                   }else{
			                     $.toast("账号或密码错误", "forbidden");
			                   }
			                },
			                error: function(xhr, type){
			                    $.toast("错误", "forbidden");
			                }
			            });
				    }
				});
			});
		      $.WeiPHP.initWxShare({
		    	    title:"最美档案照——美颜瘦脸",
		    	    imgUrl:"http://wei.gzpyp.edu.cn/Uploads/Picture/2017-09-02/59aa05c299277.png",
		    	    desc:"16,17级可支持在线查看,在线打印,修改背景色+美白美颜+冲印裁剪",
		    	    link: "{:U('index')}",
		    	})
		</script>
	</head>
	<body>
		<div class="mui-content paand">
			<h1>学生档案</h1>
			<h1 style="padding-left: 80px;">信息管理</h1>
		</div>
		
		<div class="mui-content diy-martop">
			
				
					
						<div class="diy-formborder">
					    <div class="mui-input-row posis">
					        <label><span><img class="posi-ab" src="{:ADDON_PUBLIC_PATH}/images/stu-user.png" /></span><span class="diy-pand" ></span></label>
					    	<input type="text" class="input-border" name="name" id="name" placeholder="姓名">
					    </div>
					    <div class="mui-input-row mar-top posis">
					        <label><span><img class="posi-ab" src="{:ADDON_PUBLIC_PATH}/images/stu-popo.png"/></span><span class="diy-pand"></span"></label>
					        <input type="text" class="input-border" name="idcard" id="idcard" placeholder="身份证号码">
					    </div>
					    <div class="mui-button-row mar-top posis">
					       	<span><img class="posi-ab" src="{:ADDON_PUBLIC_PATH}/images/laba.png"/></span> <span class="diy-red">请先完善信息 </span>
					    </div>
				    </div>
				    <div class="mui-button-row">
					    <button class="mui-btn diy-btn mar-top" id="sub">提交</button>
					</div>
					
				
		</div>
		<footer class="posi11">
			<div class="weui-footer font-color">
            <p class="weui-footer__text posis">
            	2017广州番禺职业技术学院
            </p>
      </div>
		</footer>
	</body>
	
</html>
